package com.itheima;

import com.itheima.ui.BallFightFrame;
import com.itheima.ui.BallFightPanel;

public class Game {
    public static void main(String[] args) {
        //创建窗体对象
        BallFightFrame ballFightFrame = new BallFightFrame();
        //创建面板对象
        BallFightPanel ballFightPanel = new BallFightPanel();
        //把面板对象放进窗体
        ballFightFrame.add(ballFightPanel);
        ballFightPanel.action();
        //让窗体显示
        ballFightFrame.setVisible(true);
    }
}
